import {GithubOutlined} from '@ant-design/icons';
import {DefaultFooter} from '@ant-design/pro-components';

const Footer: React.FC = () => {
  const defaultMessage = 'duanyf';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'csdn',
          title: '博客',
          href: 'https://blog.csdn.net/qq_48092631',
          blankTarget: true,
        },
        {
          key: 'planet',
          title: '知识星球',
          href: 'https://ant.design',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <><GithubOutlined/> duanyf GitHub</>,
          href: 'https://github.com/yfandragon',
          blankTarget: true,
        },
      ]}
    />
  );
};
export default Footer;
